<#-- 页面布局使用到的宏 -->
<#macro layout title>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>${title}</title>
    <link rel="stylesheet" href="${request.contextPath}/font-awesome/4.6.3/css/font-awesome.min.css">
    <link rel="stylesheet" href="${request.contextPath}/bootstrap/3.3.7/css/bootstrap.css">
    <style type="text/css">
        body{padding-top:70px;}
        .page-header{
            margin:0px;
        }
        i.fa{margin-right: 5px;margin-left: 5px;}
        .label>a{color: #FFFFFF;}
        .label>a:hover{color: ;}
        footer {
            background: #333;
            color: #eee;
            font-size: 11px;
            padding: 20px;
        }
        footer ul.unstyled {
            list-style: none;
            padding: 0;
        }
        footer h6 {
            color: white;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="${request.contextPath}/">JEKI社区</a>
        </div>
        <div>
            <ul class="nav navbar-nav navbar-left">
                <#--<li class="active"><a href="${request.contextPath}/domain/java">JAVA</a></li>-->
                <#--<li><a href="${request.contextPath}/domain/rax">Rax框架</a></li>-->
                <#--<li><a href="${request.contextPath}/domain/database">数据库</a></li>-->
                <#--<li><a href="${request.contextPath}/domain/osm">运维</a></li>-->
            <#list navDomainList as navDomain>
                <li <#if navDomain.code==activeDomain.code! >class="active"</#if> ><a href="${request.contextPath}/domain/${navDomain.code}">${navDomain.name}</a></li>
            </#list>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <@shiro.authenticated>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        您好,${sessionUser.name!}<b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="${request.contextPath}/my/home">我的空间</a></li>
                        <li><a href="${request.contextPath}/article/create">写文章</a></li>
                        <li><a href="${request.contextPath}/admin/home">管理员中心</a></li>
                        <li class="divider"></li>
                        <li><a href="${ctxPath}/logoff-action">退出登录</a></li>
                    </ul>
                </li>
                </@shiro.authenticated>
                <@shiro.notAuthenticated>
                <li><a href="${request.contextPath}/register"><span class="glyphicon glyphicon-user"></span> 注册</a></li>
                <li><a href="${request.contextPath}/logon"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
                </@shiro.notAuthenticated>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <#nested>
</div>

<footer>
    <div class="container">
        <div class="row">
            <div class="col-sm-2">
                <h6>Copyright &copy;Rober</h6>
            </div>

            <div class="col-sm-4">
                <h6>关于我们</h6>
                <p>Rax，A3Web以大资管，租赁，信贷等金融IT系统内部交流社区</p>
            </div>

            <div class="col-sm-2">
                <h6>导航</h6>
                <ul class="unstyled">
                    <li><a href="">主页</a></li>
                    <li><a href="">服务</a></li>
                    <li><a href="">链接</a></li>
                    <li><a href="">联系我们</a></li>
                </ul>
            </div>

            <div class="col-sm-2">
                <h6>关注我们</h6>
                <ul class="unstyled">
                    <li><a href="">微博</a></li>
                    <li><a href="">微信</a></li>
                    <li><a href="">来往</a></li>
                </ul>
            </div>

            <div class="col-sm-2">
                <h6>本网站由<span class="glyphicon glyphicon-heart"></span>Rober社区制作</h6>
            </div>
        </div>
    </div>
</footer><!--页脚结束-->

</body>
</html>
<script src="${request.contextPath}/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<script src="${request.contextPath}/bootstrap/3.3.7/js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
</#macro>